import React, { Component, useState } from 'react'

export default class TestClassHook extends Component {
    
    render() {
        // let [count, setCount] = useState(0) 
        // 报错
        //React Hook "useState" cannot be called in a class component. React Hooks must be called in a React function component or a custom React Hook function 
        return (
            <div>TestClassHook</div>
        )
    }
}
